﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001095 RID: 4245
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueWorkbenchHandleFuncScRsp : IMessage<RogueWorkbenchHandleFuncScRsp>, IMessage, IEquatable<RogueWorkbenchHandleFuncScRsp>, IDeepCloneable<RogueWorkbenchHandleFuncScRsp>, IBufferMessage
	{
		// Token: 0x1700358C RID: 13708
		// (get) Token: 0x0600BD8A RID: 48522 RVA: 0x001FF28B File Offset: 0x001FD48B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueWorkbenchHandleFuncScRsp> Parser
		{
			get
			{
				return RogueWorkbenchHandleFuncScRsp._parser;
			}
		}

		// Token: 0x1700358D RID: 13709
		// (get) Token: 0x0600BD8B RID: 48523 RVA: 0x001FF292 File Offset: 0x001FD492
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueWorkbenchHandleFuncScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700358E RID: 13710
		// (get) Token: 0x0600BD8C RID: 48524 RVA: 0x001FF2A4 File Offset: 0x001FD4A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueWorkbenchHandleFuncScRsp.Descriptor;
			}
		}

		// Token: 0x0600BD8D RID: 48525 RVA: 0x001FF2AB File Offset: 0x001FD4AB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchHandleFuncScRsp()
		{
		}

		// Token: 0x0600BD8E RID: 48526 RVA: 0x001FF2B4 File Offset: 0x001FD4B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchHandleFuncScRsp(RogueWorkbenchHandleFuncScRsp other) : this()
		{
			this.targetFuncInfo_ = ((other.targetFuncInfo_ != null) ? other.targetFuncInfo_.Clone() : null);
			this.workbenchFuncId_ = other.workbenchFuncId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BD8F RID: 48527 RVA: 0x001FF30C File Offset: 0x001FD50C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueWorkbenchHandleFuncScRsp Clone()
		{
			return new RogueWorkbenchHandleFuncScRsp(this);
		}

		// Token: 0x1700358F RID: 13711
		// (get) Token: 0x0600BD90 RID: 48528 RVA: 0x001FF314 File Offset: 0x001FD514
		// (set) Token: 0x0600BD91 RID: 48529 RVA: 0x001FF31C File Offset: 0x001FD51C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public WorkbenchFuncInfo TargetFuncInfo
		{
			get
			{
				return this.targetFuncInfo_;
			}
			set
			{
				this.targetFuncInfo_ = value;
			}
		}

		// Token: 0x17003590 RID: 13712
		// (get) Token: 0x0600BD92 RID: 48530 RVA: 0x001FF325 File Offset: 0x001FD525
		// (set) Token: 0x0600BD93 RID: 48531 RVA: 0x001FF32D File Offset: 0x001FD52D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint WorkbenchFuncId
		{
			get
			{
				return this.workbenchFuncId_;
			}
			set
			{
				this.workbenchFuncId_ = value;
			}
		}

		// Token: 0x17003591 RID: 13713
		// (get) Token: 0x0600BD94 RID: 48532 RVA: 0x001FF336 File Offset: 0x001FD536
		// (set) Token: 0x0600BD95 RID: 48533 RVA: 0x001FF33E File Offset: 0x001FD53E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600BD96 RID: 48534 RVA: 0x001FF347 File Offset: 0x001FD547
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueWorkbenchHandleFuncScRsp);
		}

		// Token: 0x0600BD97 RID: 48535 RVA: 0x001FF358 File Offset: 0x001FD558
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueWorkbenchHandleFuncScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.TargetFuncInfo, other.TargetFuncInfo) && this.WorkbenchFuncId == other.WorkbenchFuncId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BD98 RID: 48536 RVA: 0x001FF3B8 File Offset: 0x001FD5B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.targetFuncInfo_ != null)
			{
				num ^= this.TargetFuncInfo.GetHashCode();
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num ^= this.WorkbenchFuncId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BD99 RID: 48537 RVA: 0x001FF426 File Offset: 0x001FD626
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BD9A RID: 48538 RVA: 0x001FF42E File Offset: 0x001FD62E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BD9B RID: 48539 RVA: 0x001FF438 File Offset: 0x001FD638
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.WorkbenchFuncId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.WorkbenchFuncId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			if (this.targetFuncInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.TargetFuncInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BD9C RID: 48540 RVA: 0x001FF4AC File Offset: 0x001FD6AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.targetFuncInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TargetFuncInfo);
			}
			if (this.WorkbenchFuncId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.WorkbenchFuncId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BD9D RID: 48541 RVA: 0x001FF51C File Offset: 0x001FD71C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueWorkbenchHandleFuncScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.targetFuncInfo_ != null)
			{
				if (this.targetFuncInfo_ == null)
				{
					this.TargetFuncInfo = new WorkbenchFuncInfo();
				}
				this.TargetFuncInfo.MergeFrom(other.TargetFuncInfo);
			}
			if (other.WorkbenchFuncId != 0U)
			{
				this.WorkbenchFuncId = other.WorkbenchFuncId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BD9E RID: 48542 RVA: 0x001FF598 File Offset: 0x001FD798
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BD9F RID: 48543 RVA: 0x001FF5A4 File Offset: 0x001FD7A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 64U)
					{
						if (num != 98U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.targetFuncInfo_ == null)
							{
								this.TargetFuncInfo = new WorkbenchFuncInfo();
							}
							input.ReadMessage(this.TargetFuncInfo);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.WorkbenchFuncId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004C4B RID: 19531
		private static readonly MessageParser<RogueWorkbenchHandleFuncScRsp> _parser = new MessageParser<RogueWorkbenchHandleFuncScRsp>(() => new RogueWorkbenchHandleFuncScRsp());

		// Token: 0x04004C4C RID: 19532
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004C4D RID: 19533
		public const int TargetFuncInfoFieldNumber = 12;

		// Token: 0x04004C4E RID: 19534
		private WorkbenchFuncInfo targetFuncInfo_;

		// Token: 0x04004C4F RID: 19535
		public const int WorkbenchFuncIdFieldNumber = 1;

		// Token: 0x04004C50 RID: 19536
		private uint workbenchFuncId_;

		// Token: 0x04004C51 RID: 19537
		public const int RetcodeFieldNumber = 8;

		// Token: 0x04004C52 RID: 19538
		private uint retcode_;
	}
}
